/*
 * Welcome to use the TableGo Tools.
 * 
 * http://vipbooks.iteye.com
 * http://blog.csdn.net/vipbooks
 * http://www.cnblogs.com/vipbooks
 * 
 * Author:bianj
 * Email:edinsker@163.com
 * Version:5.8.8
 */

package cn.stylefeng.guns.czlm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * tb_user_coupon
 * 
 * @author yunfa_liu
 * @version 1.0.0 2019-04-29
 */
@TableName("tb_user_coupon")
@Data
public class TbUserCoupon implements java.io.Serializable {
    /** 版本号 */
    private static final long serialVersionUID = -6853640343927209388L;

    /** id */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    /** userId */
    @TableField("userId")
    private Integer userId;

    /** couponId */
    @TableField("couponId")
    private Integer couponId;

    /** createTime */
    @TableField("createTime")
    private Date createTime;

    /** 截止时间 */
    @TableField("expiryDate")
    private Date expiryDate;

    /** 0未用1已用 */
    @TableField("status")
    private Integer status;

    /**
     * 获取id
     * 
     * @return id
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置id
     * 
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取userId
     * 
     * @return userId
     */
    public Integer getUserId() {
        return this.userId;
    }

    /**
     * 设置userId
     * 
     * @param userId
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取couponId
     * 
     * @return couponId
     */
    public Integer getCouponId() {
        return this.couponId;
    }

    /**
     * 设置couponId
     * 
     * @param couponId
     */
    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    /**
     * 获取createTime
     * 
     * @return createTime
     */
    public Date getCreateTime() {
        return this.createTime;
    }

    /**
     * 设置createTime
     * 
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取截止时间
     * 
     * @return 截止时间
     */
    public Date getExpiryDate() {
        return this.expiryDate;
    }

    /**
     * 设置截止时间
     * 
     * @param expiryDate
     *          截止时间
     */
    public void setExpiryDate(Date expiryDate) {
        this.expiryDate = expiryDate;
    }

    /**
     * 获取0未用1已用
     * 
     * @return 0未用1已用
     */
    public Integer getStatus() {
        return this.status;
    }

    /**
     * 设置0未用1已用
     * 
     * @param status
     *          0未用1已用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "TbUserCoupon{" +
                "id=" + id +
                ", userId=" + userId +
                ", couponId=" + couponId +
                ", createTime=" + createTime +
                ", expiryDate=" + expiryDate +
                ", status=" + status +
                '}';
    }
}